<?php
/**
 * Created by PhpStorm.
 * User: boye009
 * Date: 2016/3/16
 * Time: 15:09
 */

namespace Test\Controller;

use Common\Api\BoyeServiceApi;


class TestForumForumController extends TestController{

    public function query(){

        if(IS_POST){

            $data = array(
                'page_no'=> I('post.page_no',1),
                'page_size'=> I('post.page_size',6),
                'img_num' => I('post.img_num',3),
                'api_ver'=>$this->api_ver,
                'notify_id'=>$this->notify_id,
                'type'=>'BY_ForumForum_query',
                'alg'=>'md5',
            );

            $service = new BoyeServiceApi();

            $result = $service->callRemote("",$data,true);

            $this->parseResult($result);

        }

        $this->display();

    }

    private function parseResult($result){
        echo "解密后数据：";
        dump($result);
    }

}